<?php $this->_extends('_layouts/index_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started">
	    <table>
		<tr><td>全选</td><td>主机名</td><td>MAC地址</td><td>OS系统</td><td>主机IP地址</td><td>创建时间</td><td>主机描述</td><td>连接状态</td></tr>
		<?php foreach ($manage as $s): ?>
		<tr><td><?php echo $s->id;?></td><td><?php echo $s->ostype;?></td><td><?php echo $s->macaddress;?></td><td><?php echo $s->ipaddr;?></td><td><?php echo $s->ipaddr;?></td><td><?php echo $s->descript;?></td><td><?php echo $s->datetime;?></td><td>
		 <a href="<?php echo url('default::hostlist/view', array('group_id' => $s->id())); ?>">详情</a>
            <a href="<?php echo url('default::hostlist/edit', array('group_id' => $s->id())); ?>">编辑</a>
            <a href="<?php echo url('default::hostlist/refreshgroup', array('group_id' => $s->id())); ?>">刷新主机数</a>
            <a href="<?php echo url('default::hostlist/del', array('group_id' => $s->id())); ?>">删除</a>
            <a href="<?php echo url('default::hostlist/bind', array('group_id' => $s->id())); ?>">添加主机</a>
		<?php echo $s->id;?></td></tr>
		<?php endforeach; ?>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>